package com.service.account;

import com.mapper.AccountMapper;
import com.model.account.Account;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2016/11/14.
 */
@SuppressWarnings("SpringJavaAutowiringInspection")
@Service("accountService")
public class AccountServiceImpl implements AccountService {
    @Autowired
    private AccountMapper accountMapper;

    // 第三方用户唯一凭证
    public static String appid ;
    // 第三方用户唯一凭证密钥
    public static String appsecret ;
    @Override
    public Account findById(String id) {
        Account account= accountMapper.findById(id);
        appid=account.getAppId();
        appsecret=account.getAppSecrect();
        return account;
    }
}
